// https://www.jinrishici.com/ 今日诗词

// fetch api
export const getYiYanTokenUrl = () => {
    return fetch('https://v2.jinrishici.com/token', {
        method: 'GET',
    })
}

// 获取 poem
export const getYiYanUrl = (token: string) => {
    return fetch('https://v2.jinrishici.com/one.json?client=browser-sdk/1.2&X-User-Token=3zHd2YIPbYsry3hGacK4mz651ExTkd1F', {
        method: 'GET',
    }).then(res => res.json())
}
